package com.fuershiye.woman.monitor.beans;


public class QueryFiledEntry implements Cloneable{
    public static final int QUERY_EXP_EQ = 0;
    public static final int QUERY_EXP_ALLEQ = 1;
    public static final int QUERY_EXP_LIKE = 2;
    public static final int QUERY_EXP_LIKE_ANYWHERE = 21;
    public static final int QUERY_EXP_LIKE_END = 22;
    public static final int QUERY_EXP_LIKE_START = 23;
    
    public static final int QUERY_EXP_GT = 3;
    public static final int QUERY_EXP_GE = 4;
    public static final int QUERY_EXP_LT = 5;
    public static final int QUERY_EXP_LE = 6;
    public static final int QUERY_EXP_BETWEEN = 7;
    public static final int QUERY_EXP_IN = 8;
    public static final int QUERY_EXP_SQL = 9;
    
    private String fieldname;   //company.cname
    private String[] matchvalue;    //2009-11-11,2009-11-12
    private Integer exp=QueryFiledEntry.QUERY_EXP_EQ;   //QUERY_EXP_EQ,QUERY_EXP_ALLEQ,QUERY_EXP_LIKE_ANYWHERE,QUERY_EXP_LIKE_END
    private boolean analyzer=false;
    private float boost=1.0f;
    
    private String relstype="and";  //and or 
    private boolean iscol=false;        //是否是集合
    private Short datavaluetype=2;
    
    public QueryFiledEntry() {
        super();
    }
    
    public boolean isAnalyzer() {
        return analyzer;
    }

    public void setAnalyzer(boolean analyzer) {
        this.analyzer = analyzer;
    }

    public float getBoost() {
        return boost;
    }

    public void setBoost(float boost) {
        this.boost = boost;
    }

    public Short getDatavaluetype() {
        return datavaluetype;
    }
    public void setDatavaluetype(Short datavaluetype) {
        this.datavaluetype = datavaluetype;
    }
    public String getFieldname() {
        return fieldname;
    }
    public void setFieldname(String fieldname) {
        this.fieldname = fieldname;
    }
    
    public String[] getMatchvalue() {
        return matchvalue;
    }
    public void setMatchvalue(String[] matchvalue) {
        this.matchvalue = matchvalue;
    }
    public String getRelstype() {
        return relstype;
    }
    public void setRelstype(String relstype) {
        this.relstype = relstype;
    }
    public boolean isIscol() {
        return iscol;
    }
    public void setIscol(boolean iscol) {
        this.iscol = iscol;
    }
    public Integer getExp() {
        return exp;
    }
    public void setExp(Integer exp) {
        this.exp = exp;
    }
    @Override
    public QueryFiledEntry clone(){
        try {
            return (QueryFiledEntry) super.clone();
        } catch (CloneNotSupportedException e) {
            e.printStackTrace();
        }
        return null;
    }
}